package com.hnd.springframework.beans.factory.support;

import com.hnd.springframework.BeansException;
import com.hnd.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * 策略模式
 */
public interface InstantiationStrategy {
    Object instance(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;
}
